# LED 数据库 - 包含常见LED型号的参数
LED_DATABASE = [
    {
        "model": "2835",
        "voltage": 3.2,  # V
        "current": 0.15,   # A
        "luminous_flux": 110,  # lm
        "cost": 0.45,      # ¥/颗
        "efficiency": 110/3.2/0.15  # lm/W
    },
    {
        "model": "3030",
        "voltage": 3.0,
        "current": 0.3,
        "luminous_flux": 220,
        "cost": 0.85,
        "efficiency": 220/3.0/0.3
    },
    {
        "model": "5050",
        "voltage": 3.3,
        "current": 0.6,
        "luminous_flux": 450,
        "cost": 1.2,
        "efficiency": 450/3.3/0.6
    },
    {
        "model": "5630",
        "voltage": 3.1,
        "current": 0.5,
        "luminous_flux": 380,
        "cost": 0.95,
        "efficiency": 380/3.1/0.5
    },
    {
        "model": "3528",
        "voltage": 3.1,
        "current": 0.02,
        "luminous_flux": 8,
        "cost": 0.08,
        "efficiency": 8/3.1/0.02
    }
]

def get_led_database():
    return LED_DATABASE
